﻿using System;
using ActionLogic.Interface;

namespace ActionLogic.Impl
{
    public delegate void ExecuteFunc();

    public class Action : IAction, IComparable<Action>
    {
        private ExecuteFunc _task;

        public Action(ExecuteFunc task)
        {
            _task = task;
        }

        public void Execute()
        {
            _task();
        }

        public int CompareTo(Action other)
        {
            return 0;
        }
    }
}
